package com.ruoyi.zhjd.exp.modules.marshallrequires.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import javax.validation.constraints.DecimalMax;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author zhaij
 * @Description //马歇尔试验技术要求服务类
 * @Date 13:41 2021\11\26 0026
 * @Param
 * @return
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("n_laboratory_marshall_requires")
public class MarshallRequiresEntity implements Serializable {


    /**
     * @Fields serialVersionUID : TODO
     */
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /*
     *标号
     */
    private String name;
    /*
     *最大值
     */
    @DecimalMax(value = "999999999.9",message = "最大值不能超过{value}")
    private BigDecimal flowMaxValue;

    /*
     *最小值
     */
    @DecimalMax(value = "999999999.9",message = "最小值不能超过{value}")
    private BigDecimal flowMinValue;

    /*
     *稳定值
     */
    @DecimalMax(value = "999999999.9",message = "稳定值不能超过{value}")
    private BigDecimal stabilityValue;

    /*
     *创建人
     */
    private String insertBy;

    @TableLogic
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private String deleted;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime insertTime;// 插入时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;// 更新时间


}
